

import api from '@/http/index'
/* 获取统计列表数据*/
export const getTablesList = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Drug/DrugList', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
//获取门店列表
export const shopData = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Shop/GetGridJson', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
//表格导出打印
export const ExeclData = (data) => {
    return new Promise((resolve, reject) => {
        api.get("/api/Drug/DrugList", data)
            .then(res => {
                resolve(res);
            })
            .catch(err => {
                reject(err);
            });
    });
};